Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: make sure AMQPSource reconnects #754

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Conversation

spuun
Copy link
Member

@spuun spuun commented Aug 16, 2024

WHAT is this pull request doing?

The shovel Runner will restart Source and Destionation when an exception occurs in any of them. The Source was however not restarted because it was in a "started" state because it didn't change state on all exceptions because exception was rescued in the wrong place.

This PR will rescue all exceptions and stop the source before re-raising the exception to the Runner.

HOW can this pull request be tested?

Specs

Copy link
Member

@snichme snichme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good findings, not always obvious where to put the rescue in these scenarios.

@spuun spuun force-pushed the shovels-destination-reconnects branch from cfa1dbb to a24a97c Compare August 20, 2024 06:51
@spuun spuun changed the title Make sure AMQPSource reconnects Bugfix: make sure AMQPSource reconnects Aug 20, 2024
@spuun spuun merged commit 44e54a9 into main Aug 20, 2024
21 of 25 checks passed
@spuun spuun deleted the shovels-destination-reconnects branch August 20, 2024 06:57
spuun added a commit that referenced this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants